home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / PowerD / powerd / modules.lha / modules / resources / disk.m < prev    next >
Encoding:
Text File  |  2000-11-18  |  1.2 KB  |  49 lines

  1. MODULE    'exec/lists'
  2. MODULE    'exec/ports','exec/tasks'
  3. MODULE    'exec/interrupts'
  4. MODULE    'exec/libraries'
  5.  
  6. OBJECT DiscResourceUnit
  7.     Message:Message,
  8.     DiscBlock:Interrupt,
  9.     DiscSync:Interrupt,
  10.     Index:Interrupt
  11.  
  12. OBJECT DiscResource
  13.     Library:Library,
  14.     Current:PTR TO DiscResourceUnit,
  15.     Flags:UBYTE,
  16.     pad:UBYTE,
  17.     SysLib:PTR TO Library,
  18.     CiaResource:PTR TO Library,
  19.     UnitID[4]:ULONG,
  20.     Waiting:List,
  21.     DiscBlock:Interrupt,
  22.     DiscSync:Interrupt,
  23.     Index:Interrupt,
  24.     CurrTask:PTR TO Task
  25.  
  26. #define DRB_ALLOC0     0
  27. #define DRB_ALLOC1     1
  28. #define DRB_ALLOC2     2
  29. #define DRB_ALLOC3     3
  30. #define DRB_ACTIVE     7
  31. #define DRF_ALLOC0     (1<<0)
  32. #define DRF_ALLOC1     (1<<1)
  33. #define DRF_ALLOC2     (1<<2)
  34. #define DRF_ALLOC3     (1<<3)
  35. #define DRF_ACTIVE     (1<<7)
  36. #define DSKDMAOFF     $4000    
  37. #define DISKNAME     'disk.resource'
  38. #define DR_ALLOCUNIT     (LIB_BASE - 0*LIB_VECTSIZE)
  39. #define DR_FREEUNIT     (LIB_BASE - 1*LIB_VECTSIZE)
  40. #define DR_GETUNIT     (LIB_BASE - 2*LIB_VECTSIZE)
  41. #define DR_GIVEUNIT     (LIB_BASE - 3*LIB_VECTSIZE)
  42. #define DR_GETUNITID     (LIB_BASE - 4*LIB_VECTSIZE)
  43. #define DR_READUNITID     (LIB_BASE - 5*LIB_VECTSIZE)
  44. #define DR_LASTCOMM     (DR_READUNITID)
  45. #define DRT_AMIGA     ($00000000)
  46. #define DRT_37422D2S     ($55555555)
  47. #define DRT_EMPTY     ($FFFFFFFF)
  48. #define DRT_150RPM     ($AAAAAAAA)
  49.